/**
 * 
 */
package tests;

import java.io.IOException;

import global.PageId;
import global.RID;
import heap.FieldNumberOutOfBoundException;
import heap.InvalidTupleSizeException;
import heap.InvalidTypeException;
import heap.Triple;

/**
 * @author smriti
 *
 */
public class query {
	
	public static RID getRID (int pageNo, int slot) {
		return new RID (new PageId(pageNo), slot);
	}
	
	
	public static void main(String[] args) throws InvalidTypeException, InvalidTupleSizeException, IOException, FieldNumberOutOfBoundException {
		Triple t = new Triple();
		RID seid = getRID (1,2);
		RID pid = getRID (1,2);
		RID oeid = getRID (1,2);
		float d = (float) 0.9;
		t.addTriple(seid, pid, oeid, d);
		t.printStat();
		t.dropLastColumn();
		t.printStat();
		//t.printTuple();
	}
}
